</para>
<para>
- Typically widgets have one or more CSS nodes with element names (GTK+ falls
- back to using the widget type if a widget has no element name) and style
+ All widgets have one or more CSS nodes with element names and style
classes. When style classes are used in selectors, they have to be prefixed
with a period. Widget names can be used in selectors like IDs. When used
in a selector, widget names must be prefixed with a # character.
</example>
<example>
- <title>Theme any widget within a GtkBin</title>
+ <title>Theme any widget within a GtkBox</title>
<programlisting><![CDATA[
-GtkBin * {
+box * {
font: Sans 20
}
]]></programlisting>
<example>
<title>Theme the entry of a GtkSpinButton</title>
<programlisting><![CDATA[
-spinbutton.entry {
+spinbutton entry {
color: 900185;
}
]]></programlisting>
<entry>E</entry>
<entry>any node with name E</entry>
<entry><ulink url="http://www.w3.org/TR/css3-selectors/#type-selectors">CSS</ulink></entry>
- <entry>GTK+ uses the type name of the widget if no CSS name has been set</entry>
+ <entry></entry>
</row>
<row>
<entry>E.class</entry>